"C-s M-p" brings the tip of the search ring.
authorJuri Linkov <juri@jurta.org>
Wed, 24 Aug 2011 09:40:58 +0000 (12:40 +0300)
committerJuri Linkov <juri@jurta.org>
Wed, 24 Aug 2011 09:40:58 +0000 (12:40 +0300)
commit20ac2206bb3a1e3919301d00ceb1e6309e85d476
tree70bfedf298defca052fc66c2a5e77c094890c89e
parent6408ef90b6ccc8a81b720bf51b0a074debd63332
"C-s M-p" brings the tip of the search ring.

* lisp/isearch.el (isearch-ring-adjust1): Start visiting previous
search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
(isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
for empty search string (when the last search string is reused
automatically) to adjust the isearch ring to the last element and
prepare the correct index for further M-p commands.
lisp/ChangeLog
lisp/isearch.el